package com.jd.finance.core.service;

import com.jd.finance.core.pojo.entity.Dictionary;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jd.finance.result.BaseResult;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 字典表 服务类
 * </p>
 *
 * @author LiQingBo
 * @since 2022-05-20
 */
public interface DictionaryService extends IService<Dictionary> {

    /**
     * 获取所有敏感词
     * @param uid
     * @return
     */
    BaseResult getAPPAllWord(@Param("uid") Integer uid);

    /**
     * 添加敏感词
     * @param uid
     * @param dicText
     * @param request
     * @return
     */
    BaseResult insertAPPWord(@Param("uid") Integer uid, @Param("dicText") String dicText, @Param("request") HttpServletRequest request);

    /**
     * 删除敏感词
     * @param uid
     * @param did
     * @param request
     * @return
     */
    BaseResult deleteAPPWord(@Param("uid") Integer uid, @Param("did") Integer did, @Param("request") HttpServletRequest request);
}
